﻿using MyDAL.helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class StrConfigForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TextBox1.Text = DataHelper.GetInstance().JobStrConfig.Lycph;
            TextBox2.Text = DataHelper.GetInstance().JobStrConfig.Jcwtd;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
             DataHelper.GetInstance().JobStrConfig.Lycph = TextBox1.Text;
             DataHelper.GetInstance().JobStrConfig.Jcwtd = TextBox2.Text;
            DataHelper.GetInstance().refrashStrConfig();
            Response.Write("<script>alert('保存成功')</script>");
            Response.Redirect("WebFormMain.aspx");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Redirect("WebFormMain.aspx");
        }
    }
}